package com.woniuxy.dudugua.service.impl;

import com.woniuxy.dudugua.entity.Product;
import com.woniuxy.dudugua.mapper.ProductMapper;
import com.woniuxy.dudugua.service.BeautyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BeautyServiceImpl implements BeautyService {
    @Resource
    private ProductMapper   productMapper;
    @Override
    public List<Product> selectByProduct() throws Exception {
        List<Product> products = productMapper.selectByProduct();
        if(products!=null){
            return   products;
        }
        return null;
    }
}
